package com.clip.entity.csch;

import java.util.HashMap;
import java.util.Map;

public class TYPEMAP{

	/**
	 * 
	 */
	private static final long serialVersionUID = -2746225221847326397L;
	private static int TYPE0=0;
	private static int TYPE1=1;
	private static int TYPE2=2;
	private static int TYPE3=3;
	private static int TYPE4=4;
	private static int TYPE5=5;
	private static int TYPE6=6;
	private static int TYPE7=7;
	private static int TYPE8=8;
	private static String PROVINCE=Province.class.getSimpleName();
	private static String CITY=City.class.getSimpleName();
	private static String DISTRICT=District.class.getSimpleName();
	private static String UNIVERSITY=University.class.getSimpleName();
	private static String DEPARTMENT=Department.class.getSimpleName();
	private static String VOCATIONALSCHOOL=Vocationalschool.class.getSimpleName();
	private static String JUNIORSCHOOL=Juniorschool.class.getSimpleName();
	private static String HIGHSCHOOL=Highschool.class.getSimpleName();
	
	private static Map<Integer, String> inttables=new HashMap<Integer, String>();
	public static String getTableName(int key){
		if(inttables.isEmpty()){
			initMapContent();
		}
		return inttables.get(key);
	}
	
	private static void initMapContent(){
		inttables.put(TYPE0, PROVINCE);
		inttables.put(TYPE1, CITY);
		inttables.put(TYPE2, DISTRICT);
		inttables.put(TYPE3, DISTRICT);
		inttables.put(TYPE4, UNIVERSITY);
		inttables.put(TYPE5, HIGHSCHOOL);
		inttables.put(TYPE6, JUNIORSCHOOL);
		inttables.put(TYPE7, VOCATIONALSCHOOL);
		inttables.put(TYPE8, DEPARTMENT);
	}
	
}
